<page-header [breadcrumb]="phNgContent" [title]="title">
    <ng-template #phNgContent class> </ng-template>
    <nz-card [nzBordered]="false">
      <form nz-form [formGroup]="form" (ngSubmit)="submit()" se-container="1" labelWidth="200">
        <se label="名称" error="名称不能为空或者空白字符" required>
          <input nz-input formControlName="name" placeholder="名称" />
        </se>
        <se label="资产类型" error="资产类型" required>
          <nz-select formControlName="assetType" placeholder="设备类型">
            <nz-option nzValue="Device" nzLabel="设备"></nz-option>
            <nz-option nzValue="Gateway" nzLabel="网关"></nz-option>
          </nz-select>
        </se>
  
        <se label="描述" error="描述" required>
            <textarea rows="10" formControlName="description" nz-input></textarea>
        </se>
        <se>
          <input nz-input formControlName="customerId" type="hidden" />
          <input nz-input formControlName="id" type="hidden" />
          <button nz-button type="reset" (click)="close()">取消</button>
          <button nz-button nzType="primary" [disabled]="form.invalid" type="submit" [nzLoading]="submitting">保存</button>
         </se>
      </form>
    </nz-card>
  </page-header>
  